{% extends 'base.html' %}
{% block title %} Notebook {% endblock %}
{% block head %}
{% endblock %}
{% block body %}
<div class="ui centered column">
	<button id="clear-all-data-button" class="ui red labeled icon button"><i class="erase icon"></i> 清除全部数据 </button>
	<script>
		$("#clear-all-data-button").click(function(){
			var x = confirm("确认清除全部数据？该操作不可逆！")
			if(x){
				root = {}
				SaveRootData()
				localStorage.setItem('inited','0')
				alert("数据已清除")
			}
		})
	</script>
</div>
{% endblock %}
